home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FGL304C.ZIP;1 / EXC.ARJ / FGDOC / EXAMPLES / C / 07-01.C < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-24  |  452 b   |  30 lines

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. void main()
  6. {
  7.    int old_mode;
  8.  
  9.    old_mode = fg_getmode();
  10.    fg_setmode(3);
  11.    fg_cursor(0);
  12.  
  13.    fg_setattr(14,0,0);
  14.    fg_text("yellow",6);
  15.  
  16.    fg_setattr(10,0,0);
  17.    fg_text(" green",6);
  18.  
  19.    fg_setattr(12,0,1);
  20.    fg_text(" blinking",9);
  21.  
  22.    fg_setattr(12,7,0);
  23.    fg_locate(24,0);
  24.    fg_text(" Press any key. ",16);
  25.    fg_waitkey();
  26.  
  27.    fg_setmode(old_mode);
  28.    fg_reset();
  29. }
  30.